﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Media;

namespace SudokuSolver.Classes.Core
{
    public class ZezoToNullConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, String culture)
        {
            int numValue = (int)value;

            if (numValue == 0)
            {
                return null;
            }

            return numValue;
        }

        public object ConvertBack(object value, Type targetType, object parameter, string language)
        {
            throw new NotImplementedException();
        }
    }
}
